package com.whjfxx.terminal.biz.param;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class FuncParam implements Serializable {

    /**
     * id
     */
    private Long id;

    @NotNull(message = "应用不能为空")
    private Long appId;

    /**
     * 应用名称
     */
    @NotBlank(message = "功能名不能为空")
    @Length(max = 64, message = "功能名称长度不能超过64")
    private String funcName;

    /**
     * 备注
     */
    @Length(max = 500, message = "备注不能超过500")
    private String remark;

}
